package com.gzy.android_douban.data.model;


import java.util.List;

public class MovieModel {

   private Integer code;
   private String msg;
   private DataDTO data;

   public Integer getCode() {
      return code;
   }

   public void setCode(Integer code) {
      this.code = code;
   }

   public String getMsg() {
      return msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public DataDTO getData() {
      return data;
   }

   public void setData(DataDTO data) {
      this.data = data;
   }

   public static class DataDTO {
      private List<RecordsDTO> records;
      private Integer total;
      private Integer size;
      private Integer current;
      private List<?> orders;
      private Boolean optimizeCountSql;
      private Boolean searchCount;
      private Object countId;
      private Object maxLimit;
      private Integer pages;

      public List<RecordsDTO> getRecords() {
         return records;
      }

      public void setRecords(List<RecordsDTO> records) {
         this.records = records;
      }

      public Integer getTotal() {
         return total;
      }

      public void setTotal(Integer total) {
         this.total = total;
      }

      public Integer getSize() {
         return size;
      }

      public void setSize(Integer size) {
         this.size = size;
      }

      public Integer getCurrent() {
         return current;
      }

      public void setCurrent(Integer current) {
         this.current = current;
      }

      public List<?> getOrders() {
         return orders;
      }

      public void setOrders(List<?> orders) {
         this.orders = orders;
      }

      public Boolean getOptimizeCountSql() {
         return optimizeCountSql;
      }

      public void setOptimizeCountSql(Boolean optimizeCountSql) {
         this.optimizeCountSql = optimizeCountSql;
      }

      public Boolean getSearchCount() {
         return searchCount;
      }

      public void setSearchCount(Boolean searchCount) {
         this.searchCount = searchCount;
      }

      public Object getCountId() {
         return countId;
      }

      public void setCountId(Object countId) {
         this.countId = countId;
      }

      public Object getMaxLimit() {
         return maxLimit;
      }

      public void setMaxLimit(Object maxLimit) {
         this.maxLimit = maxLimit;
      }

      public Integer getPages() {
         return pages;
      }

      public void setPages(Integer pages) {
         this.pages = pages;
      }

      public static class RecordsDTO {
         private Integer movieId;
         private String name;
         private String nameEn;
         private String img;
         private String bigImage;
         private String titleOthers;
         private Double rating;
         private Integer directorId;
         private Integer personCount;
         private String story;
         private Integer ratingCount;
         private Integer length;
         private String moviePublishDate;
         private Integer movieYear;

         public Integer getMovieId() {
            return movieId;
         }

         public void setMovieId(Integer movieId) {
            this.movieId = movieId;
         }

         public String getName() {
            return name;
         }

         public void setName(String name) {
            this.name = name;
         }

         public String getNameEn() {
            return nameEn;
         }

         public void setNameEn(String nameEn) {
            this.nameEn = nameEn;
         }

         public String getImg() {
            return img;
         }

         public void setImg(String img) {
            this.img = img;
         }

         public String getBigImage() {
            return bigImage;
         }

         public void setBigImage(String bigImage) {
            this.bigImage = bigImage;
         }

         public String getTitleOthers() {
            return titleOthers;
         }

         public void setTitleOthers(String titleOthers) {
            this.titleOthers = titleOthers;
         }

         public Double getRating() {
            return rating;
         }

         public void setRating(Double rating) {
            this.rating = rating;
         }

         public Integer getDirectorId() {
            return directorId;
         }

         public void setDirectorId(Integer directorId) {
            this.directorId = directorId;
         }

         public Integer getPersonCount() {
            return personCount;
         }

         public void setPersonCount(Integer personCount) {
            this.personCount = personCount;
         }

         public String getStory() {
            return story;
         }

         public void setStory(String story) {
            this.story = story;
         }

         public Integer getRatingCount() {
            return ratingCount;
         }

         public void setRatingCount(Integer ratingCount) {
            this.ratingCount = ratingCount;
         }

         public Integer getLength() {
            return length;
         }

         public void setLength(Integer length) {
            this.length = length;
         }

         public String getMoviePublishDate() {
            return moviePublishDate;
         }

         public void setMoviePublishDate(String moviePublishDate) {
            this.moviePublishDate = moviePublishDate;
         }

         public Integer getMovieYear() {
            return movieYear;
         }

         public void setMovieYear(Integer movieYear) {
            this.movieYear = movieYear;
         }

         @Override
         public String toString() {
            return "RecordsDTO{" +
                    "movieId=" + movieId +
                    ", name='" + name + '\'' +
                    ", nameEn='" + nameEn + '\'' +
                    ", img='" + img + '\'' +
                    ", bigImage='" + bigImage + '\'' +
                    ", titleOthers='" + titleOthers + '\'' +
                    ", rating=" + rating +
                    ", directorId=" + directorId +
                    ", personCount=" + personCount +
                    ", story='" + story + '\'' +
                    ", ratingCount=" + ratingCount +
                    ", length=" + length +
                    ", moviePublishDate='" + moviePublishDate + '\'' +
                    ", movieYear=" + movieYear +
                    '}';
         }
      }

      @Override
      public String toString() {
         return "DataDTO{" +
                 "records=" + records +
                 ", total=" + total +
                 ", size=" + size +
                 ", current=" + current +
                 ", orders=" + orders +
                 ", optimizeCountSql=" + optimizeCountSql +
                 ", searchCount=" + searchCount +
                 ", countId=" + countId +
                 ", maxLimit=" + maxLimit +
                 ", pages=" + pages +
                 '}';
      }
   }

   @Override
   public String toString() {
      return "MovieModel{" +
              "code=" + code +
              ", msg='" + msg + '\'' +
              ", data=" + data +
              '}';
   }
}
